import request from '@/utils/request'

export function login(email, password) {
  const data = {
    email,
    password
  }
  return request({
    url:  'merchant_backend/login',
    method: 'POST',
    data
  })
}

export function logout() {
  return request({
    url:  'merchant_backend/logout',
    method: 'POST'
  })
}

export function agentInfo(id) {
  return request({
    url: 'queryLogo',
    method: 'GET',
    params: { id }
  })
}
